home *** CD-ROM | disk | FTP | other *** search
- u PRINT THIS
-
- SIGNED INTEGER TO UNSIGNED
- --------------------------
-
- I=I-(I<0)*65536
-
-
- This is good for getting a useable
- value from FRE(0). For some strange
- reason, the creator of BASIC 2.0 (a
- guy by the name of Bill Gates) decide
- to punch the two-byte value of free
- BASIC memory into a signed integer
- variable. If the value is over 32787,
- the result appears as a negative
- number.
-
- So use the above function to fix it.
-
- FRE = FRE(0)-(FRE(0)<0)*65536
-
-
-